let Rule = require("../rule.js")
class NumericRule extends Rule{
	name(){
		return 'numeric'
	}
	check(column,value,values,params){
		var re = /^(\-?)\d{1,}(\.?\d{1,})?$/;
		return typeof value !== 'string' && re.test(value)
	}
}
module.exports = NumericRule